home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / show / ui / tsShowLoadDlg.gui < prev    next >
Text File  |  2005-11-23  |  3KB  |  119 lines

  1. //-----------------------------------------------------------------------------
  2. // Torque Game Engine
  3. // 
  4. // Copyright (c) 2001 GarageGames.Com
  5. //-----------------------------------------------------------------------------
  6.  
  7. //--- OBJECT WRITE BEGIN ---
  8. new GuiControl(TSShowLoadDlg) {
  9.    profile = "GuiDialogProfile";
  10.     horizSizing = "right";
  11.     vertSizing = "bottom";
  12.     position = "0 0";
  13.     extent = "640 480";
  14.     minExtent = "8 8";
  15.     visible = "True";
  16.     setFirstResponder = "False";
  17.     modal = "True";
  18.     helpTag = "0";
  19.  
  20.     new GuiWindowCtrl() {
  21.         profile = "GuiWindowProfile";
  22.         horizSizing = "right";
  23.         vertSizing = "bottom";
  24.         position = "100 100";
  25.         extent = "180 240";
  26.         minExtent = "8 8";
  27.         visible = "True";
  28.         setFirstResponder = "False";
  29.         modal = "True";
  30.         helpTag = "0";
  31.         text = "Load";
  32.         resizeWidth = "True";
  33.         resizeHeight = "True";
  34.         canMove = "True";
  35.         canClose = "True";
  36.         canMinimize = "True";
  37.         canMaximize = "True";
  38.         minSize = "50 50";
  39.         closeCommand = "Canvas.popDialog(TSShowLoadDlg);";
  40.  
  41.         new GuiScrollCtrl() {
  42.             profile = "GuiScrollProfile";
  43.             horizSizing = "right";
  44.             vertSizing = "bottom";
  45.             position = "20 35";
  46.             extent = "140 160";
  47.             minExtent = "8 8";
  48.             visible = "True";
  49.             setFirstResponder = "False";
  50.             modal = "True";
  51.             helpTag = "0";
  52.             willFirstRespond = "True";
  53.             hScrollBar = "alwaysOff";
  54.             vScrollBar = "alwaysOn";
  55.             constantThumbHeight = "False";
  56.  
  57.             new GuiTextListCtrl(showFileList) {
  58.                 profile = "GuiTextArrayProfile";
  59.                 horizSizing = "right";
  60.                 vertSizing = "bottom";
  61.                 position = "0 0";
  62.                 extent = "64 64";
  63.                 minExtent = "8 8";
  64.                 visible = "True";
  65.                 setFirstResponder = "False";
  66.                 modal = "True";
  67.                 altCommand = "eval($showFileCommand); Canvas.popDialog(TSShowLoadDlg);";
  68.                 helpTag = "0";
  69.                 enumerate = "False";
  70.                 resizeCell = "True";
  71.                 columns = "0";
  72.                     noDuplicates = "false";
  73.             };
  74.         };
  75.         new GuiButtonCtrl() {
  76.             profile = "GuiButtonProfile";
  77.             horizSizing = "right";
  78.             vertSizing = "bottom";
  79.             position = "20 205";
  80.             extent = "60 20";
  81.             minExtent = "8 8";
  82.             visible = "True";
  83.             setFirstResponder = "False";
  84.             modal = "True";
  85.             command = "eval($showFileCommand); Canvas.popDialog(TSShowLoadDlg);";
  86.             helpTag = "0";
  87.             text = "Load";
  88.         };
  89.         new GuiButtonCtrl() {
  90.             profile = "GuiButtonProfile";
  91.             horizSizing = "right";
  92.             vertSizing = "bottom";
  93.             position = "100 205";
  94.             extent = "60 20";
  95.             minExtent = "8 8";
  96.             visible = "True";
  97.             setFirstResponder = "False";
  98.             modal = "True";
  99.             command = "Canvas.popDialog(TSShowLoadDlg);";
  100.             helpTag = "0";
  101.             text = "Cancel";
  102.         };
  103.     };
  104. };
  105. //--- OBJECT WRITE END ---
  106.  
  107.  
  108. function foobar(%file)
  109. {
  110.    echo ("TODO LOAD " @ %file);   
  111. }   
  112.  
  113. function TSShowLoadDlg::onWake(%this)
  114. {
  115.    %filespec = "*.cs";
  116.    getLoadFilename(%filespec, foobar);
  117. }   
  118.  
  119.